import request from '@/utils/request'

// 查询不需要校验登录的url列表
export function listUnauthurl(query) {
  return request({
    url: '/user/unauthurl/list',
    method: 'get',
    params: query
  })
}

// 查询不需要校验登录的url详细
export function getUnauthurl(id) {
  return request({
    url: '/user/unauthurl/' + id,
    method: 'get'
  })
}

// 新增不需要校验登录的url
export function addUnauthurl(data) {
  return request({
    url: '/user/unauthurl/add',
    method: 'post',
    data: data
  })
}

// 修改不需要校验登录的url
export function updateUnauthurl(data) {
  return request({
    url: '/user/unauthurl/edit',
    method: 'put',
    data: data
  })
}

// 删除不需要校验登录的url
export function delUnauthurl(id) {
  return request({
    url: '/user/unauthurl/' + id,
    method: 'delete'
  })
}

